﻿namespace DataMorph.Web.Endpoints
{
    using DataMorph.Web.Services;

    using Microsoft.AspNet.SignalR;

    public class Notifier : INotifier
    {
        public void Notify(string clientId, ProgressReport progress)
        {
            var connectionContext = GlobalHost.ConnectionManager.GetConnectionContext<DataGeneratorEndpoint>();
            connectionContext.Connection.Send(clientId, progress);
        }
    }
}